import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

type homeResult = {
  page: any;
  result: any
};



/** 新增人才招聘 */
export const touZhiLibraryinsertlibrary = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/library/insertlibrary"), { data });
};


/** 删除人才招聘 */
export const touZhiLibrarydellibrary = (userid?: string | number) => {
  return http.request<homeResult>("delete", baseUrlApi(`/secbackend/library/dellibrary/${userid}`));
};

/** 修改人才招聘 */
export const touZhiLibraryupdatelibrary = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/library/updatelibrary"), { data });
};


/** 查询人才招聘 */
export const touZhiLibrarysellibrarybypage = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/library/sellibrarybypage"), { data });
};


/** 查询人才招聘 */
export const touZhiLibrarysh = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/library/sh"), { data });
};